﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;
namespace DentalSoftware
{
    public partial class ChiTietDieuTriForm : Form
    {
        private int mabn;
        public ChiTietDieuTriForm(int ma)
        {
            InitializeComponent();
            mabn = ma;
        }

        private void ChiTietDieuTriForm_Load(object sender, EventArgs e)
        {
            DataGridViewComboBoxColumn dv = (DataGridViewComboBoxColumn)dgvChiTietDieuTri.Columns[5];
            dv.DataSource = ChooseBUS.SelectAllDMDichVu();
            dv.ValueMember = "Ma";
            dv.DisplayMember = "Ten";
            dgvChiTietDieuTri.AutoGenerateColumns = false;
            dgvChiTietDieuTri.DataSource = BenhNhanBUS.SelectChiTietDieuTriByBenhNhan(mabn);           
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
